package controllers

type IndexController struct {
	BaseController
}


// @router / [get]
func (this *IndexController) Get() {
	this.Data["title"] = "极简博客--首页"
	this.TplName = "index.html"
}

// @router /message [get]
func (this *IndexController) GetMessage() {
	this.Data["title"] = "极简博客--消息"
	this.Abort("404")
	this.TplName = "message.html"
}

// @router /about [get]
func (this *IndexController) GetAbout() {
	this.Data["title"] = "极简博客--关于"
	this.TplName = "about.html"
}

// @router /user [get]
func (this *IndexController) GetUser() {
	this.Data["title"] = "极简博客--登录"
	this.TplName = "user.html"
}

// @router /register [get]
func (this *IndexController) GetRegister() {
	this.Data["title"] = "极简博客--注册"
	this.TplName = "register.html"
}

// @router /album [get]
func (this *IndexController) IndexAlbum() {
	this.Data["title"] = "极简博客--相册"
	this.TplName = "album.html"
}

// @router /leacots [get]
func (this *IndexController) IndexLeacots() {
	this.Data["title"] = "极简博客--留言"
	this.TplName = "leacots.html"
}

// @router /whisper [get]
func (this *IndexController) IndexWhisper() {
	this.Data["title"] = "极简博客--微语"
	this.TplName = "whisper.html"
}



